body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: white;
}

.header {
    background-color: #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    margin: 0;
    font-size: 1.5em;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.controls button {
    padding: 8px 12px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.controls button:hover {
    background-color: #777;
}

.controls button.active {
    background-color: #007bff;
}

#status {
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.player-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
    background-color: #000;
}

video {
    max-width: 100%;
    max-height: 100%;
    outline: none;
}

.fallback-message {
    display: none;
    position: absolute;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.2em;
    }
    
    .controls {
        width: 100%;
        justify-content: center;
    }
    
    .controls button {
        padding: 10px 8px;
        font-size: 0.8em;
        flex: 1;
        max-width: 120px;
    }
    
    #status {
        font-size: 0.8em;
        min-width: 80px;
    }
    
    .player-container {
        height: calc(100vh - 120px);
    }
}

